package com.atwj.Service;

import com.atwj.entity.Book;
import com.atwj.entity.Page;

import java.util.List;

/**
 * @author 吴先森
 * @description:
 * @create 2022-03-23 19:31
 */
public interface BookService {
    public void addBook(Book book);

    public void deleteBook(Integer id);

    public void update(Book book);

    public Book queryBookByid(Integer id);

    public List<Book> queryBooks();

    Page<Book> page(int pageNo, int pageSize);

    Page<Book> pageByPrice(int pageNo, int pageSize, int min, int max);
}
